package buyers;




import java.io.*;

public class BuyersDataRead {
    static BuyersDAOArrayList buyersData = new BuyersDAOArrayList();
    public static void main() {
        try {
            BufferedReader in;
            in = new BufferedReader(
                    new InputStreamReader(
                            new FileInputStream("买家账号信息.txt"),"utf-8"));
            String line;

            while ((line = in.readLine()) != null){
                String[] temp = line.split(" ");
                Buyer buyer = new Buyer(temp[0],temp[1],temp[2],temp[3]);
                buyersData.addAccountData(buyer);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

    public  BuyersDAOArrayList getBuyersData() {
        return buyersData;
    }


}
